<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j" >
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="#{facesContext.externalContext.request.contextPath}/resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
	    <title>${titulo}</title>    
    </head>
    
    <body>
    		<div id="top">
	            <ui:insert name="topo">
	            	<ui:include src="/resources/pagina/topo.xhtml"/>
	            </ui:insert>
	        </div>
	        <div>
                <a4j:region id="ajaxRegion">
	                <ui:insert name="modalLoading">
	                	<a4j:status onstart="Richfaces.showModalPanel('panel_loading')" 
	                				onstop="#{rich:component('panel_loading')}.hide()" />
	                    <ui:include src="/resources/pagina/mensagens.xhtml" />
	                    <ui:include src="/resources/pagina/loading.xhtml" />
	                </ui:insert>
	                    <div id="left">
			                <ui:insert name="menu">
			                	<ui:include src="/resources/pagina/menu.xhtml"/>
			                </ui:insert>
			            </div>
			            <div>
				            <a4j:form prependId="false">
			                	<a4j:loadScript src="/resources/js/jquery.maskedinput.js"/>
			             	    <div id="content" class="right_content">
				                	<ui:insert name="conteudo"/>
				                </div>
			            	</a4j:form>    
				        </div>
			    </a4j:region>
			</div>
	        <div id="bottom">
	            <ui:insert name="rodape">
	            	<ui:include src="/resources/pagina/rodape.xhtml"/>
	            </ui:insert>
	        </div>
	</body>
</html>
